package work.boom1;

/**
 * @author lijunhao
 * 2023/7/13 作业
 * @description TODO
 */
public class PersonTest {public static void main(String[] args) {
    Person p1 = new Person("张三", 25, true);
    Person p2 = new Person("李四", 23, false);
    p1.marry(p2);
    Person p3 = new Person("王五", 20, false);
    p2.marry(p3);
    Person p4 = new Person("赵六", 26, false);
    p1.marry(p4);
}}
